package routers

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"sunliang.cc/controller"
)

func LoadApiRouters(router *gin.Engine) {
	// 健康检查，不要改动！！！
	router.HEAD("/health", controller.Health)
	router.GET("/health", controller.Health)

	router.GET("/", func(ctx *gin.Context) {
		ctx.String(http.StatusOK, ctx.ClientIP())
	})

	router.GET("/hello", controller.Hello)
}
